﻿using System;
using System.CodeDom.Compiler;
using System.Diagnostics;
using Google.Protobuf;
using Google.Protobuf.Reflection;

namespace EggLink.DanhengServer.Proto
{
	// Token: 0x020004F7 RID: 1271
	[DebuggerDisplay("{ToString(),nq}")]
	public sealed class ExchangeRogueBuffWithMiracleScRsp : IMessage<ExchangeRogueBuffWithMiracleScRsp>, IMessage, IEquatable<ExchangeRogueBuffWithMiracleScRsp>, IDeepCloneable<ExchangeRogueBuffWithMiracleScRsp>, IBufferMessage
	{
		// Token: 0x17001073 RID: 4211
		// (get) Token: 0x06003982 RID: 14722 RVA: 0x0009E203 File Offset: 0x0009C403
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public static MessageParser<ExchangeRogueBuffWithMiracleScRsp> Parser
		{
			get
			{
				return ExchangeRogueBuffWithMiracleScRsp._parser;
			}
		}

		// Token: 0x17001074 RID: 4212
		// (get) Token: 0x06003983 RID: 14723 RVA: 0x0009E20A File Offset: 0x0009C40A
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public static MessageDescriptor Descriptor
		{
			get
			{
				return ExchangeRogueBuffWithMiracleScRspReflection.Descriptor.MessageTypes[0];
			}
		}

		// Token: 0x17001075 RID: 4213
		// (get) Token: 0x06003984 RID: 14724 RVA: 0x0009E21C File Offset: 0x0009C41C
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		MessageDescriptor IMessage.Descriptor
		{
			get
			{
				return ExchangeRogueBuffWithMiracleScRsp.Descriptor;
			}
		}

		// Token: 0x06003985 RID: 14725 RVA: 0x0009E223 File Offset: 0x0009C423
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public ExchangeRogueBuffWithMiracleScRsp()
		{
		}

		// Token: 0x06003986 RID: 14726 RVA: 0x0009E22C File Offset: 0x0009C42C
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public ExchangeRogueBuffWithMiracleScRsp(ExchangeRogueBuffWithMiracleScRsp other) : this()
		{
			this.retcode_ = other.retcode_;
			this.buff_ = ((other.buff_ != null) ? other.buff_.Clone() : null);
			this._unknownFields = UnknownFieldSet.Clone(other._unknownFields);
		}

		// Token: 0x06003987 RID: 14727 RVA: 0x0009E278 File Offset: 0x0009C478
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public ExchangeRogueBuffWithMiracleScRsp Clone()
		{
			return new ExchangeRogueBuffWithMiracleScRsp(this);
		}

		// Token: 0x17001076 RID: 4214
		// (get) Token: 0x06003988 RID: 14728 RVA: 0x0009E280 File Offset: 0x0009C480
		// (set) Token: 0x06003989 RID: 14729 RVA: 0x0009E288 File Offset: 0x0009C488
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public uint Retcode
		{
			get
			{
				return this.retcode_;
			}
			set
			{
				this.retcode_ = value;
			}
		}

		// Token: 0x17001077 RID: 4215
		// (get) Token: 0x0600398A RID: 14730 RVA: 0x0009E291 File Offset: 0x0009C491
		// (set) Token: 0x0600398B RID: 14731 RVA: 0x0009E299 File Offset: 0x0009C499
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public RogueCommonBuff Buff
		{
			get
			{
				return this.buff_;
			}
			set
			{
				this.buff_ = value;
			}
		}

		// Token: 0x0600398C RID: 14732 RVA: 0x0009E2A2 File Offset: 0x0009C4A2
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public override bool Equals(object other)
		{
			return this.Equals(other as ExchangeRogueBuffWithMiracleScRsp);
		}

		// Token: 0x0600398D RID: 14733 RVA: 0x0009E2B0 File Offset: 0x0009C4B0
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public bool Equals(ExchangeRogueBuffWithMiracleScRsp other)
		{
			return other != null && (other == this || (this.Retcode == other.Retcode && object.Equals(this.Buff, other.Buff) && object.Equals(this._unknownFields, other._unknownFields)));
		}

		// Token: 0x0600398E RID: 14734 RVA: 0x0009E300 File Offset: 0x0009C500
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public override int GetHashCode()
		{
			int num = 1;
			if (this.Retcode != 0U)
			{
				num ^= this.Retcode.GetHashCode();
			}
			if (this.buff_ != null)
			{
				num ^= this.Buff.GetHashCode();
			}
			if (this._unknownFields != null)
			{
				num ^= this._unknownFields.GetHashCode();
			}
			return num;
		}

		// Token: 0x0600398F RID: 14735 RVA: 0x0009E355 File Offset: 0x0009C555
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public override string ToString()
		{
			return JsonFormatter.ToDiagnosticString(this);
		}

		// Token: 0x06003990 RID: 14736 RVA: 0x0009E35D File Offset: 0x0009C55D
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public void WriteTo(CodedOutputStream output)
		{
			output.WriteRawMessage(this);
		}

		// Token: 0x06003991 RID: 14737 RVA: 0x0009E368 File Offset: 0x0009C568
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		void IBufferMessage.InternalWriteTo(ref WriteContext output)
		{
			if (this.buff_ != null)
			{
				output.WriteRawTag(18);
				output.WriteMessage(this.Buff);
			}
			if (this.Retcode != 0U)
			{
				output.WriteRawTag(104);
				output.WriteUInt32(this.Retcode);
			}
			if (this._unknownFields != null)
			{
				this._unknownFields.WriteTo(ref output);
			}
		}

		// Token: 0x06003992 RID: 14738 RVA: 0x0009E3C4 File Offset: 0x0009C5C4
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public int CalculateSize()
		{
			int num = 0;
			if (this.Retcode != 0U)
			{
				num += 1 + CodedOutputStream.ComputeUInt32Size(this.Retcode);
			}
			if (this.buff_ != null)
			{
				num += 1 + CodedOutputStream.ComputeMessageSize(this.Buff);
			}
			if (this._unknownFields != null)
			{
				num += this._unknownFields.CalculateSize();
			}
			return num;
		}

		// Token: 0x06003993 RID: 14739 RVA: 0x0009E41C File Offset: 0x0009C61C
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public void MergeFrom(ExchangeRogueBuffWithMiracleScRsp other)
		{
			if (other == null)
			{
				return;
			}
			if (other.Retcode != 0U)
			{
				this.Retcode = other.Retcode;
			}
			if (other.buff_ != null)
			{
				if (this.buff_ == null)
				{
					this.Buff = new RogueCommonBuff();
				}
				this.Buff.MergeFrom(other.Buff);
			}
			this._unknownFields = UnknownFieldSet.MergeFrom(this._unknownFields, other._unknownFields);
		}

		// Token: 0x06003994 RID: 14740 RVA: 0x0009E484 File Offset: 0x0009C684
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public void MergeFrom(CodedInputStream input)
		{
			input.ReadRawMessage(this);
		}

		// Token: 0x06003995 RID: 14741 RVA: 0x0009E490 File Offset: 0x0009C690
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		void IBufferMessage.InternalMergeFrom(ref ParseContext input)
		{
			uint num;
			while ((num = input.ReadTag()) != 0U)
			{
				if (num != 18U)
				{
					if (num != 104U)
					{
						this._unknownFields = UnknownFieldSet.MergeFieldFrom(this._unknownFields, ref input);
					}
					else
					{
						this.Retcode = input.ReadUInt32();
					}
				}
				else
				{
					if (this.buff_ == null)
					{
						this.Buff = new RogueCommonBuff();
					}
					input.ReadMessage(this.Buff);
				}
			}
		}

		// Token: 0x04001693 RID: 5779
		private static readonly MessageParser<ExchangeRogueBuffWithMiracleScRsp> _parser = new MessageParser<ExchangeRogueBuffWithMiracleScRsp>(() => new ExchangeRogueBuffWithMiracleScRsp());

		// Token: 0x04001694 RID: 5780
		private UnknownFieldSet _unknownFields;

		// Token: 0x04001695 RID: 5781
		public const int RetcodeFieldNumber = 13;

		// Token: 0x04001696 RID: 5782
		private uint retcode_;

		// Token: 0x04001697 RID: 5783
		public const int BuffFieldNumber = 2;

		// Token: 0x04001698 RID: 5784
		private RogueCommonBuff buff_;
	}
}
